package com.cj.model;

import java.util.List;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Model;

@SuppressWarnings("serial")
public class Department extends Model<Department> {
	public static final Department me = new Department();
	
	public List<Department> getAllDepartments() {
		String sql = "select * from department";
		return find(sql);
	}
	
	public int getMaxID() {
		String sql = "select max(deptId) from department";
		return Db.queryInt(sql);
	}
	
	
}
